<?php
/* @var $this YumtextsettingsController */
/* @var $model Yumtextsettings */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'yumtextsettings-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'language'); ?>
		<?php echo CHtml::activeDropDownList($model, 'language', array(
				'vi' => Yum::t('vi') ,
				//'en' => Yum::t('en') ,
				//'de' => Yum::t('de') ,
				//'fr' => Yum::t('fr') ,
				//'pl' => Yum::t('pl') ,
				//'ru' => Yum::t('ru') ,
				//'es' => Yum::t('es') ,
		)); ?>
		<?php echo $form->error($model,'language'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'code'); ?>
		<?php echo $form->textField($model,'code',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'template'); ?>
		<?php echo $form->textArea($model,'template',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'template'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
		
<style type="text/css">
	textarea{
		height: 350px;
	    width: 100%;
		font-family: monospace;
	}
</style>